Material UI menu button inside a table with pagination and sort does not work after second page